package com.task.controller.manager.impl;

import com.task.controller.entity.Mission;
import com.task.controller.manager.AbstractManager;

/**
 * 此对象中管理的方法，不会故意选择执行的线程，他们只会在调用者的线程中执行
 */
public class CurrentMethodManager extends AbstractManager<String, Mission> {

    private static CurrentMethodManager currentMethodManager = new CurrentMethodManager();

    private CurrentMethodManager() {
        super();
    }

    public static CurrentMethodManager getInstance() {
        if (currentMethodManager == null) {
            currentMethodManager = new CurrentMethodManager();
        }
        return currentMethodManager;
    }
}
